# Sentinel - IRC Statistical and Operator Services
# Makefile.in - Library Makefile
#
# Copyright W. Campbell and others.  See README for more details
# Some code Copyright: Jonathan George, Kai Seidler, ircd-hybrid Team,
#                      IRCnet IRCD developers.
#
# $Id: Makefile.in,v 1.10 2003/11/13 19:40:34 wcampbel Exp $

CC=@CC@
RM=@RM@
MV=@MV@
CP=@CP@
AS=@AS@
RANLIB=@RANLIB@
CFLAGS=@CFLAGS@ @ASSERT@ -Wall -I.
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@

# Debuggers need special flags - Note that a debugger will know
# how to modify these to get what he/she needs
#CFLAGS += -ggdb -pedantic -Wshadow -Wmissing-declarations

## STOP STOP STOP
## No need to change anything below
## STOP STOP STOP

SRCS =	configparse.c \
	dlink.c \
	event.c \
	match.c \
	mem.c \
	support.c \
	s_string.c \
	slog.c \
	sutil.c \
	token.c

OBJS = ${SRCS:.c=.o}

.c.o:
	$(CC) $(CFLAGS) -c $<

all: libsentinel.a

clean:
	$(RM) -f *.o

build: all

libsentinel.a: $(OBJS)
	rm -f $@
	${AR} cqv $@ ${OBJS}
	${RANLIB} $@

cleandir: distclean

distclean: clean
	$(RM) -f config.log config.cache config.status setup.h
	$(RM) -f libsentinel.a
	$(RM) -f Makefile

lint:
	lint -aacgprxhH -I. $(SRCS) >lint.out

lclint:

depend:
	$(CC) -MM $(CFLAGS) $(SRCS) > .depend

install: build

# Catch any changes in compilation options at the top of this file
$(OBJS): Makefile

include .depend
